package part4;

public class Main {
    public static void main(String[] args) {
        DeepProtoType p = new DeepProtoType();
        p.name = "宋江";
        p.deepCloneableTarget = new DeepCloneableTarget("大牛");

        DeepProtoType p2 = p.clone();

        System.out.println(p);
        System.out.println(p2);

        DeepProtoType p3 = p.deepClone();
        System.out.println(p3);
    }
}
